﻿using System;
using Qplus.enums;
using Qplus.UI;

namespace Qplus.Infrastructure
{
    public class MessageReceivedFromServer : EventArgs
    {
        public string strMessage { get; private set; }
        public byte[] Message { get; private set; }
        public MMessageID MsgID { get; set; }
        public MessageReceivedFromServer(byte[] message)
        {
            Message = message;
            int msgID = 0;// Message[3] + Message[4] * 256;
            switch ((MMessageID)msgID)
            {
                #region 用户登录、退出
                case MMessageID.C2L_REQ_LOGIN:
                    {
                        break;
                    }
                case MMessageID.L2C_RESP_LOGIN:
                    {
                        break;
                    }
                case MMessageID.C2U_REQ_LOGIN:
                    {

                        break;
                    }
                case MMessageID.U2C_RESP_LOGIN:
                    {
                        break;
                    }
                case MMessageID.C2U_REQ_LOGOUT:
                    {

                        break;
                    }
                case MMessageID.U2C_RESP_LOGOUT:
                    {

                        break;
                    }
                case MMessageID.C2U_NOTIFY_CLIENT_ONLINE:
                    {

                        break;
                    }
                #endregion

                #region 系统消息
                case MMessageID.U2C_NOTIFY_SYSTEM_MSG:
                    {

                        break;
                    }
                case MMessageID.U2C_SYN_FORCE_LOGOUT:
                    {

                        break;
                    }
                case MMessageID.C2U_REQ_SHORT_MSG:
                    {

                        break;
                    }
                case MMessageID.U2C_RESP_SHORT_MSG:
                    {

                        break;
                    }
                case MMessageID.U2C_NOTIFY_SHORT_MSG:
                    {

                        break;
                    }
                #endregion

                #region 客服聊天
                case MMessageID.C2U_REQ_CUSTOMER_SERVICE:
                    {

                        break;
                    }
                case MMessageID.U2C_RESP_CUSTOMER_SERVICE:
                    {

                        break;
                    }
                case MMessageID.C2U_REQ_SESSION_BEGIN:
                    {

                        break;
                    }
                case MMessageID.U2C_RESP_SESSION_BEGIN:
                    {

                        break;
                    }
                case MMessageID.U2C_NOTIFY_SESSION_BEGIN:
                    {

                        break;
                    }
                case MMessageID.C2U_REQ_SESSION_END:
                    {

                        break;
                    }
                case MMessageID.U2C_RESP_SESSION_END:
                    {

                        break;
                    }
                case MMessageID.U2C_NOTIFY_SESSION_END:
                    {

                        break;
                    }
                case MMessageID.C2U_REQ_CHAT_SENDMSG:
                    {

                        break;
                    }
                case MMessageID.U2C_RESP_CHAT_SENDMSG:
                    {

                        break;
                    }
                case MMessageID.U2C_NOTIFY_CHAT_RECVMSG:
                    {

                        break;
                    }
                case MMessageID.C2U_REQ_CHAT_VOICEBEGIN:
                    {

                        break;
                    }
                case MMessageID.U2C_RESP_CHAT_VOICEBEGIN:
                    {

                        break;
                    }
                case MMessageID.U2C_NOTIFY_CHAT_VOICEBEGIN:
                    {

                        break;
                    }
                case MMessageID.C2U_REQ_CHAT_VOICEDATA:
                    {

                        break;
                    }
                case MMessageID.U2C_NOTIFY_CHAT_VOICEDATA:
                    {

                        break;
                    }
                case MMessageID.C2U_REQ_CHAT_VOICEEND:
                    {

                        break;
                    }
                case MMessageID.U2C_RESP_CHAT_VOICEEND:
                    {

                        break;
                    }
                case MMessageID.U2C_NOTIFY_CHAT_VOICEEND:
                    {

                        break;
                    }
                #endregion

                #region 聊天室
                case MMessageID.C2U_REQ_ROOM_PEOPLE_COUNT:
                    {

                        break;
                    }
                case MMessageID.U2C_RESP_ROOM_PEOPLE_COUNT:
                    {

                        break;
                    }
                case MMessageID.C2U_REQ_ENTER_ROOM:
                    {

                        break;
                    }
                case MMessageID.U2C_RESP_ENTER_ROOM:
                    {

                        break;
                    }
                case MMessageID.C2U_REQ_LEAVE_ROOM:
                    {

                        break;
                    }
                case MMessageID.U2C_RESP_LEAVE_ROOM:
                    {

                        break;
                    }
                case MMessageID.C2U_REQ_ROOM_SENDMSG:
                    {

                        break;
                    }
                case MMessageID.U2C_RESP_ROOM_SENDMSG:
                    {

                        break;
                    }
                case MMessageID.U2C_NOTIFY_ROOM_RECVTMSG:
                    {

                        break;
                    }
                case MMessageID.C2U_REQ_ROOM_VOICEBEGIN:
                    {

                        break;
                    }
                case MMessageID.U2C_RESP_ROOM_VOICEBEGIN:
                    {

                        break;
                    }
                case MMessageID.U2C_NOTIFY_ROOM_VOICEBEGIN:
                    {

                        break;
                    }
                case MMessageID.C2U_REQ_ROOM_SENDVOICE:
                    {

                        break;
                    }
                case MMessageID.U2C_NOTIFY_ROOM_RECVVOICE:
                    {

                        break;
                    }
                case MMessageID.C2U_REQ_ROOM_VOICEEND:
                    {

                        break;
                    }
                case MMessageID.U2C_RESP_ROOM_VOICEEND:
                    {

                        break;
                    }
                case MMessageID.U2C_NOTIFY_ROOM_VOICEEND:
                    {

                        break;
                    }
                case MMessageID.C2U_REQ_USER_LIST:
                    {

                        break;
                    }
                case MMessageID.U2C_RESP_USER_LIST:
                    {

                        break;
                    }
                case MMessageID.U2C_NOTIFY_ROOM_MSGLOG_RECORD:
                    {

                        break;
                    }
                #endregion

                #region 客服权限
                case MMessageID.C2U_REQ_ROOM_BANNED:
                    {

                        break;
                    }
                case MMessageID.U2C_NOTIFY_ROOM_BANNED:
                    {

                        break;
                    }
                case MMessageID.U2C_RESP_ROOM_BANNED:
                    {

                        break;
                    }
                #endregion
                default:
                    break;
            }
        }
        public MessageReceivedFromServer(string message)
        {
            strMessage = message;
        }
    }
}